GtkFontChooser: Check if the deprecated widgets are present before updating the size...
authorAlberto Ruiz <aruiz@gnome.org>
Wed, 4 May 2011 22:23:13 +0000 (23:23 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 15 Aug 2011 22:57:54 +0000 (18:57 -0400)
gtk/gtkfontchooser.c

index 5da1d04d50b692182e3576f5042b907fc4fa2193..074124abe1e50b186523222f109bfc8672b9b042 100644 (file)
@@ -412,8 +412,11 @@ spin_change_cb (GtkAdjustment *adjustment, gpointer data)
 
 
 #ifndef GTK_DISABLE_DEPRECATED
-  priv->ignore_size = TRUE;
-  update_size_list_selection (fontsel);
+  if (priv->size_list)
+    {
+      priv->ignore_size = TRUE;
+      update_size_list_selection (fontsel);
+    }
 #endif /* GTK_DISABLE_DEPRECATED */
 
   gtk_widget_queue_draw (priv->preview);